[mypy]
python_version = 3.8
cache_dir = .mypy_cache

# TODO(nate): Additional strictness checks to work towards.
# disallow_incomplete_defs = true
# disallow_subclassing_any = true
# disallow_untyped_decorators = true

allow_redefinition = true
check_untyped_defs = true
disallow_any_generics = true
implicit_reexport = false
no_implicit_optional = true
scripts_are_modules = true
strict_equality = true
warn_redundant_casts = true
warn_return_any = true
warn_unused_configs = true
warn_unused_ignores = true
warn_unreachable = true

show_error_context = true
show_column_numbers = true
show_error_codes = true
pretty = true

[mypy-scripts.add_license_headers]
ignore_errors = True

[mypy-streamlit.proto.*]
ignore_errors = True

[mypy-bokeh.*]
ignore_missing_imports = True

[mypy-git]
# The GitPython package is untyped and causes spurious mypy errors.
ignore_errors = True
ignore_missing_imports = True

[mypy-pympler.*]
ignore_missing_imports = True

[mypy-altair.*,base58,blinker,bokeh.embed,botocore,boto3,cachetools.*,chart_studio.*,cPickle,flake8.main,future.*,graphviz,matplotlib.*,numpy,pandas.*,PIL,pipenv.*,plotly.*,prometheus_client,pyarrow,pydeck,pyflakes,pyflakes.checker,seaborn,setuptools.*,sympy,tensorflow.*,tzlocal,validators,watchdog,watchdog.observers]
ignore_missing_imports = true

[mypy-semver.*]
ignore_missing_imports = True

[tomli]
# Used internally by pytest; untyped
ignore_missing_imports = true
